/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FileStatistic;

import java.util.List;

/**
 *	This is class implement CSVFile; <br/>
 * 
 * @author signal
 */


public class CSVFile {
    private String fileName;
    private List<String[]> tableOfValues;
    
	/**
	 * Set for private parameters;<br/>
	 * 
	 * @param fileName 
	 */
	
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }
    
	/**
	 * Set for private parameters;<br/>
	 * 
	 * @param tableOfValues 
	 */
	
    public void setTableOfValues(List<String[]> tableOfValues)
    {
        this.tableOfValues = tableOfValues;
    }
    
	/**
	 * Get for private parameters;<br/>
	 * 
	 * @return 
	 */
	
    public String getFileName()
    {
        return fileName;
    }
    
	/**
	 * Get for private parameters;<br/>
	 * 
	 * @return 
	 */
	
    public List<String[]> getTableOfValues()
    {
        return tableOfValues;
    }
	
	/**
	 * 
	 * Function get CSVFile as String;<br/>
	 * 
	 * @return Formated string of CSVFile;
	 */
	
	@Override
	public String toString()
	{
		StringBuilder strBuild = new StringBuilder();
		for(int i = 0; i < tableOfValues.size(); i++)
			strBuild.append(tableOfValues.get(i)[0] + "/"
					+ tableOfValues.get(i)[1] + "/"
					+ tableOfValues.get(i)[2] + "\n");
		return strBuild.toString();
	}
}
